#!/bin/bash

echo Copying files

cp /opt/apache-tomcat/webapps/ROOT/WEB-INF/classes/edu/colorado/karl/databases/MySQLConnecter.java /opt/apache-tomcat/webapps/ROOT/WEB-INF/classes/edu/colorado/karl/databases/MySQLConnecter.java.old

cp /opt/apache-tomcat/webapps/ROOT/WEB-INF/classes/edu/colorado/karl/databases/MySQLConnecter.class /opt/apache-tomcat/webapps/ROOT/WEB-INF/classes/edu/colorado/karl/databases/MySQLConnecter.class.old

cp /solar/tomcatfiles/softcore/testfiles/crashDatabase/RSSReader.java /opt/apache-tomcat/webapps/ROOT/WEB-INF/classes/edu/colorado/karl/databases/MySQLConnecter.java

cp /solar/tomcatfiles/softcore/testfiles/crashDatabase/RSSReader.class /opt/apache-tomcat/webapps/ROOT/WEB-INF/classes/edu/colorado/karl/databases/MySQLConnecter.class

echo Restarting Tomcat...

/etc/init.d/tomcat6.sh restart

echo Success, check web page after 6pm or 6am.
